package org.taobao.ibatiside.core;


public class IbatisConstant {
	public static final int NOT_IBATIS=0;
	public static final int VERSION_TWO = 2;
	public static final int VERSION_MYBATIS = 3;
	public static final String[] V2_TYPE_TO_CHECK={"com.ibatis.sqlmap.engine.config.SqlMapConfiguration"};
	public static final String[] V3_TYPE_TO_CHECK={"org.apache.ibatis.session.SqlSessionFactory"};
	public static final String V2_MAPPER_XPATH="/sqlMapConfig/sqlMap[@resource]";
	public static final String V3_MAPPER_XPATH="/configuration/mappers/mapper[@resource]";
	public static final String STATEMENT_XPATH="/sqlMap/select|/sqlMap/update|/sqlMap/insert|/sqlMap/delete|/sqlMap/statement|/sqlMap/procedure|/mapper/update|/mapper/insert|/mapper/select|/mapper/delete";
	
	public static final String[] V2_CONFIG_PUBLIC_ID = {
			"-//iBATIS.com//DTD SQL Map Config 2.0//EN",
			"-//ibatis.apache.org//DTD SQL Map Config 2.0//EN" };
	public static final String[] V2_CONFIG_SYSTEM_ID = {
			"http://www.ibatis.com/dtd/sql-map-config-2.dtd",
			"http://ibatis.apache.org/dtd/sql-map-config-2.dtd" };
	public static final String[] V2_MAP_PUBLIC_ID = {
			"-//iBATIS.com//DTD SQL Map 2.0//EN",
			"-//ibatis.apache.org//DTD SQL Map 2.0//EN" };
	public static final String[] V2_MAP_SYSTEM_ID = {
			"http://www.ibatis.com/dtd/sql-map-2.dtd",
			"http://ibatis.apache.org/dtd/sql-map-2.dtd" };
	public static final String[] V3_CONFIG_PUBLIC_ID={
		"-//mybatis.org//DTD Config 3.0//EN"
	};
	public static final String[] V3_CONFIG_SYSTEM_ID={
		"http://mybatis.org/dtd/mybatis-3-config.dtd"
	};
	public static final String[] V3_MAP_PUBLIC_ID={
		"-//mybatis.org//DTD Mapper 3.0//EN"
	};
	public static final String[] V3_MAP_SYSTEM_ID={
		"http://mybatis.org/dtd/mybatis-3-mapper.dtd"
	};
	
	public static final int STMT_SELECT=1;
	public static final int STMT_INSERT=2;
	public static final int STMT_UPDATE=3;
	public static final int STMT_DELETE=4;
	public static final int STMT_PROCEDURE=5;
	public static final int STMT_GENERAL=6;
}
